package com.have.blog.admin.domain.dto;

import com.have.blog.base.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class CommentDto extends BaseDto<CommentDto> {
    @ApiModelProperty(value = "唯一uid")
    private Integer uid;

    @ApiModelProperty(value = "用户uid")
    private Integer userUid;

    @ApiModelProperty(value = "回复某条评论的uid")
    private Integer toCommentUid;

    @ApiModelProperty(value = "回复某个人的uid")
    private Integer toUserUid;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "博客uid")
    private Integer blogUid;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "评论类型：1表示是独立评论，2表示是引用评论")
    private Integer type;

    @ApiModelProperty(value = "评论来源： MESSAGE_BOARD，ABOUT，BLOG_INFO 等")
    private String source;

    private UserDto user;
    private UserDto toUser;
    private BlogDto blog;
}
